
package com.flowmodule.bean;

import com.flowmodule.dao.TbFlowDAO;
import com.flowmodule.dao.TbFlowNodeDAO;
import com.usersmodule.bean.TbUsers;
import com.usersmodule.dao.TbUsersDAO;

public class TbFlowFlowNodeMiddle implements java.io.Serializable {

    private int flowFlowNodeMiddleId;

    private int flowFlowNodeMiddleSeq;

    private int flowId;
    private TbFlow tbFlow;

    private int flowNodeId;
    private TbFlowNode tbFlowNode;
    private int userId;
    private TbUsers tbUsers;

    private String createTime;

    public int getFlowFlowNodeMiddleId(){
        return flowFlowNodeMiddleId;
    }

    public void setFlowFlowNodeMiddleId(int flowFlowNodeMiddleId){
        this.flowFlowNodeMiddleId = flowFlowNodeMiddleId;
    }

    public int getFlowFlowNodeMiddleSeq(){
        return flowFlowNodeMiddleSeq;
    }

    public void setFlowFlowNodeMiddleSeq(int flowFlowNodeMiddleSeq){
        this.flowFlowNodeMiddleSeq = flowFlowNodeMiddleSeq;
    }

    public int getFlowId(){
        return flowId;
    }

    public void setFlowId(int flowId){
        this.flowId = flowId;
        this.tbFlow=new TbFlowDAO().getTbFlowByFlowId(flowId);
    }

    public int getFlowNodeId(){
        return flowNodeId;
    }
    
	public TbFlow getTbFlow() {
		return tbFlow;
	}

	public void setTbFlow(TbFlow tbFlow) {
		this.tbFlow = tbFlow;
	}

	public void setFlowNodeId(int flowNodeId){
        this.flowNodeId = flowNodeId;
        this.tbFlowNode=new TbFlowNodeDAO().getTbFlowNodeByFlowNodeId(flowNodeId);
    }
	public TbFlowNode getTbFlowNode() {
		return tbFlowNode;
	}

	public void setTbFlowNode(TbFlowNode tbFlowNode) {
		this.tbFlowNode = tbFlowNode;
	}
    public int getUserId(){
        return userId;
    }

    public void setUserId(int userId){
        this.userId = userId;
        this.tbUsers=new TbUsersDAO().getTbUsersByUserId(userId);
    }
    
    public TbUsers getTbUsers() {
		return tbUsers;
	}

	public void setTbUsers(TbUsers tbUsers) {
		this.tbUsers = tbUsers;
	}

	public String getCreateTime(){
        return createTime;
    }

    public void setCreateTime(String createTime){
        this.createTime = createTime;
    }


    public TbFlowFlowNodeMiddle(){
    }
        public TbFlowFlowNodeMiddle(int flowFlowNodeMiddleSeq,int flowId,int flowNodeId,int userId){
        this.flowFlowNodeMiddleSeq = flowFlowNodeMiddleSeq;
        this.flowId = flowId;
        this.flowNodeId = flowNodeId;
        this.userId = userId;
    }
    public TbFlowFlowNodeMiddle(int flowFlowNodeMiddleId,int flowFlowNodeMiddleSeq,int flowId,int flowNodeId,int userId){
        this.flowFlowNodeMiddleId = flowFlowNodeMiddleId;
        this.flowFlowNodeMiddleSeq = flowFlowNodeMiddleSeq;
        this.flowId = flowId;
        this.flowNodeId = flowNodeId;
        this.userId = userId;
    }
}

